package com.aidex.business.service.impl;

import java.util.List;
import org.springframework.stereotype.Service;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.github.pagehelper.PageInfo;
import com.aidex.common.core.domain.BaseEntity;
import com.aidex.common.core.service.BaseServiceImpl;
import com.aidex.business.mapper.SysParamsMapper;
import com.aidex.business.domain.SysParams;
import com.aidex.business.service.SysParamsService;
import org.springframework.transaction.annotation.Transactional;

/**
 * 系统参数表Service业务层处理
 * @author cq
 * @email 382425530@qq.com
 * @date 2023-06-20
 */
@Service
@Transactional(readOnly = true)
public class SysParamsServiceImpl extends BaseServiceImpl<SysParamsMapper, SysParams> implements SysParamsService {

    private static final Logger log = LoggerFactory.getLogger(SysParamsServiceImpl.class);

    /**
     * 获取单条数据
     * @param sysParams 系统参数表
     * @return 系统参数表
     */
    @Override
    public SysParams get(SysParams sysParams) {
        SysParams dto = super.get(sysParams);
        return dto;
    }

    /**
     * 获取单条数据
     * @param id 系统参数表id
     * @return 系统参数表
     */
    @Override
    public SysParams get(String id) {
        SysParams dto = super.get(id);
        return dto;
    }

    /**
     * 查询系统参数表列表
     * @param sysParams 系统参数表
     * @return 系统参数表
     */
    @Override
    public List<SysParams> findList(SysParams sysParams) {
		List<SysParams> sysParamsList = super.findList(sysParams);
        return sysParamsList;
    }

    /**
     * 分页查询系统参数表列表
     * @param sysParams 系统参数表
     * @return 系统参数表
     */
    @Override
    public PageInfo<SysParams> findPage(SysParams sysParams) {
		PageInfo<SysParams> page = super.findPage(sysParams);
        return page;
    }

    /**
     * 保存系统参数表
     * @param sysParams
     * @return 结果
     */
    @Override
    public boolean save(SysParams sysParams) {
        return super.save(sysParams);
    }

    /**
     * 删除系统参数表信息
     * @param sysParams
     * @return 结果
     */
    @Override
    public boolean remove(SysParams sysParams) {
        return super.remove(sysParams);
    }

    /**
     * 批量删除系统参数表
     * @param ids 需要删除的系统参数表ID
     * @return 结果
     */
    @Transactional(readOnly = false)
    @Override
    public int deleteSysParamsByIds(String[] ids) {
        return mapper.deleteSysParamsByIds(ids, BaseEntity.DEL_FLAG_DELETE);
    }

}
